<%--
  Created by IntelliJ IDEA.
  User: linzhihong
  Date: 2020/6/15
  Time: 10:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>查看简历</title>

    <script type="text/javascript" src="jquery.min.js"></script>
    <style type="text/css">
        body {
            background-color:#00b38a;
            text-align:center;
        }

        .lp-login {
            position:absolute;
            width:500px;
            height:600px;
            top:50%;
            left:50%;
            margin-top:-250px;
            margin-left:-250px;
            background: #fff;
            border-radius: 4px;
            box-shadow: 0 0 10px #12a591;
            padding: 57px 50px 35px;
            box-sizing: border-box
        }


        .lp-login .submitBtn {
            display:block;
            text-decoration:none;
            height: 48px;
            width: 150px;
            line-height: 48px;
            font-size: 16px;
            color: #fff;
            text-align: center;
            background-image: -webkit-gradient(linear, left top, right top, from(#09cb9d), to(#02b389));
            background-image: linear-gradient(90deg, #09cb9d, #02b389);
            border-radius: 3px
        }

        .lp-login .addBtn {
            display:block;
            text-decoration:none;
            height: 24px;
            width: 70px;
            line-height: 24px;
            font-size: 8px;
            color: #fff;
            text-align: center;
            background-image: -webkit-gradient(linear, left top, right top, from(#09cb9d), to(#02b389));
            background-image: linear-gradient(90deg, #09cb9d, #02b389);
            border-radius: 3px
        }

        input[type='text'] {
            height:30px;
            width:250px;
        }

        span {
            font-style: normal;
            font-variant-ligatures: normal;
            font-variant-caps: normal;
            font-variant-numeric: normal;
            font-variant-east-asian: normal;
            font-weight: normal;
            font-stretch: normal;
            font-size: 14px;
            line-height: 22px;
            font-family: "Hiragino Sans GB", "Microsoft Yahei", SimSun, Arial, "Helvetica Neue", Helvetica;
        }

        table.gridtable {
            font-family: verdana,arial,sans-serif;
            font-size:11px;
            color:#333333;
            border-width: 1px;
            border-color: #666666;
            border-collapse: collapse;
        }
        table.gridtable th {
            border-width: 1px;
            padding: 8px;
            border-style: solid;
            border-color: #666666;
            background-color: #dedede;
        }
        table.gridtable td {
            border-width: 1px;
            padding: 8px;
            border-style: solid;
            border-color: #666666;
            background-color: #ffffff;
        }

    </style>
</head>
<body>

    <div>
        <%
            int port = request.getLocalPort();
            String sessionId = session.getId();
        %>
        Port is <%=port%>
        <br/>
        SessionId is <%=sessionId%>
    </div>

    <form action="logout" method="post">
        <input class="submitBtn" type="submit" id="logout_button" name="logout_button" value="注销" />
    </form>

    <div class="lp-login">
        <form action="resume" method="get">
            <input class="addBtn" type="submit" id="add_button" name="add_button" value="添加" />
        </form>
        <table border="1" class="gridtable">
            <tr>
                <th>编号</th>
                <th>姓名</th>
                <th>地址</th>
                <th>手机号码</th>
                <th>操作</th>
            </tr>
            <c:forEach var="resumeEntity" items="${resumeEntityList}"  varStatus="status">
                <tr>
                    <td><c:out value="${resumeEntity.id}"></c:out></td>
                    <td><c:out value="${resumeEntity.name}"></c:out></td>
                    <td><c:out value="${resumeEntity.address}"></c:out></td>
                    <td><c:out value="${resumeEntity.phone}"></c:out></td>
                    <td>
                    <span>
                        <form method="post" action="delete?id=${resumeEntity.id}">
                            <input type="hidden" name="_method" value="delete"/>
                            <input type="submit" value="删除"/>
                        </form>
                    </span>

                        <span>
                        <form method="get" action="resume">
                            <input type="hidden" name="id" value="${resumeEntity.id}"/>
                            <input type="submit" value="编辑"/>
                        </form>
                    </span>
                    </td>
                </tr>
            </c:forEach>
        </table>
    </div>

</body>
</html>
